package vn.gq.udv.utils;

import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;

public class SimpleGestureListener extends GestureDetector.SimpleOnGestureListener {

	public final String TAG = SimpleGestureListener.class.getSimpleName(); 
	
	@Override
	public boolean onDoubleTap(MotionEvent e) {
		Log.i(TAG, "-----------onDoubleTap");
		return super.onDoubleTap(e);
	}

	@Override
	public boolean onDoubleTapEvent(MotionEvent e) {
		Log.i(TAG, "-----------onDoubleTapEvent");
		return super.onDoubleTapEvent(e);
	}

	@Override
	public boolean onDown(MotionEvent e) {
		Log.i(TAG, "-----------onDown");
		return super.onDown(e);
	}

	@Override
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
			float velocityY) {
		Log.i(TAG, "-----------onFling");
		return super.onFling(e1, e2, velocityX, velocityY);
	}

	@Override
	public void onLongPress(MotionEvent e) {
		Log.i(TAG, "-----------onLongPress");
		super.onLongPress(e);
	}

	@Override
	public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
			float distanceY) {
//		Log.i(TAG, "-----------onScroll");
//		Log.i(TAG, "x = "+e1.getX()+", y = "+e1.getY());
//		Log.i(TAG, "x = "+e2.getX()+", y = "+e2.getY());
		return super.onScroll(e1, e2, distanceX, distanceY);
	}

	@Override
	public void onShowPress(MotionEvent e) {
		Log.i(TAG, "-----------onShowPress");
		super.onShowPress(e);
	}

	@Override
	public boolean onSingleTapConfirmed(MotionEvent e) {
		Log.i(TAG, "-----------onSingleTapConfirmed");
		return super.onSingleTapConfirmed(e);
	}

	@Override
	public boolean onSingleTapUp(MotionEvent e) {
		Log.i(TAG, "-----------onSingleTapUp");
		return super.onSingleTapUp(e);
	}


}
